<!--扫码录入页-->
<script setup>
import { ref } from 'vue';
import ScanInput from '../components/ScanInput.vue';
import store from "../store/index.js";

// 假设从某个地方获取用户角色
const userRole = store.getters.userRole;
</script>

<template>
    <div>
        <div v-if="userRole === 'courier'">
            <ScanInput />
        </div>
        <div v-else>
            <p>您没有权限进行此操作。</p>
        </div>
    </div>
</template>

<style></style>